package com.lxl.hadoop.friends;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

/**
 * @Author lixilin
 * @Date 2022/1/13 21:47
 * @Description
 */
public class FriendsMapper extends Mapper<Text,Text,Text,Text> {

    Text k = new Text();
    Text v = new Text();
    @Override
    protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {
        k.set(key);
        v.set(value);
        context.write(k,v);
    }
}
